﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Andy.Web
{
    public partial class TrangChu : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            using (var spService = new SanPhamServiceReference.SanPhamServiceClient())
            {
                var lst = spService.DanhSachSanPham(0);
                lvDanhSach.DataSource = lst;
                lvDanhSach.DataBind();

                var listBinhLuan = spService.DanhSachBinhLuan();
                lstBinhLuan.DataSource = listBinhLuan;
                lstBinhLuan.DataBind();
            }
        }
    }
}